package com.genymobile.scrcpy.five;

import android.text.TextUtils;

public class StringArrUtils {
    private String[] arr;
    private int index = 0;
    public void set(String[] arr) {
        this.arr = arr;
        index = 0;
    }

    public String next() {
        while (index < arr.length) {
            String tmp = arr[index++].strip();
            if (!TextUtils.isEmpty(tmp)) {
                return tmp;
            }
        }
        return null;
    }
}
